Optimal. Leaf size=239 \[ \frac {F_1\left (\frac {1}{4};2,-p;\frac {5}{4};\sin ^4(e+f x),-\frac {b \sin ^4(e+f x)}{a}\right ) \sin (e+f x) \left (a+b \sin ^4(e+f x)\right )^p \left (1+\frac {b \sin ^4(e+f x)}{a}\right )^{-p}}{f}+\frac {2 F_1\left (\frac {3}{4};2,-p;\frac {7}{4};\sin ^4(e+f x),-\frac {b \sin ^4(e+f x)}{a}\right ) \sin ^3(e+f x) \left (a+b \sin ^4(e+f x)\right )^p \left (1+\frac {b \sin ^4(e+f x)}{a}\right )^{-p}}{3 f}+\frac {F_1\left (\frac {5}{4};2,-p;\frac {9}{4};\sin ^4(e+f x),-\frac {b \sin ^4(e+f x)}{a}\right ) \sin ^5(e+f x) \left (a+b \sin ^4(e+f x)\right )^p \left (1+\frac {b \sin ^4(e+f x)}{a}\right )^{-p}}{5 f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 239, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 6, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {3302, 1254,
441, 440, 525, 524} \begin {gather*} \frac {\sin (e+f x) \left (a+b \sin ^4(e+f x)\right )^p \left (\frac {b \sin ^4(e+f x)}{a}+1\right )^{-p} F_1\left (\frac {1}{4};2,-p;\frac {5}{4};\sin ^4(e+f x),-\frac {b \sin ^4(e+f x)}{a}\right )}{f}+\frac {\sin ^5(e+f x) \left (a+b \sin ^4(e+f x)\right )^p \left (\frac {b \sin ^4(e+f x)}{a}+1\right )^{-p} F_1\left (\frac {5}{4};2,-p;\frac {9}{4};\sin ^4(e+f x),-\frac {b \sin ^4(e+f x)}{a}\right )}{5 f}+\frac {2 \sin ^3(e+f x) \left (a+b \sin ^4(e+f x)\right )^p \left (\frac {b \sin ^4(e+f x)}{a}+1\right )^{-p} F_1\left (\frac {3}{4};2,-p;\frac {7}{4};\sin ^4(e+f x),-\frac {b \sin ^4(e+f x)}{a}\right )}{3 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 440
Rule 441
Rule 524
Rule 525
Rule 1254
Rule 3302
Rubi steps
\begin {align*} \int \sec ^3(e+f x) \left (a+b \sin ^4(e+f x)\right )^p \, dx &=\frac {\text {Subst}\left (\int \frac {\left (a+b x^4\right )^p}{\left (1-x^2\right )^2} \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac {\text {Subst}\left (\int \left (\frac {\left (a+b x^4\right )^p}{\left (-1+x^4\right )^2}+\frac {2 x^2 \left (a+b x^4\right )^p}{\left (-1+x^4\right )^2}+\frac {x^4 \left (a+b x^4\right )^p}{\left (-1+x^4\right )^2}\right ) \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac {\text {Subst}\left (\int \frac {\left (a+b x^4\right )^p}{\left (-1+x^4\right )^2} \, dx,x,\sin (e+f x)\right )}{f}+\frac {\text {Subst}\left (\int \frac {x^4 \left (a+b x^4\right )^p}{\left (-1+x^4\right )^2} \, dx,x,\sin (e+f x)\right )}{f}+\frac {2 \text {Subst}\left (\int \frac {x^2 \left (a+b x^4\right )^p}{\left (-1+x^4\right )^2} \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac {\left (\left (a+b \sin ^4(e+f x)\right )^p \left (1+\frac {b \sin ^4(e+f x)}{a}\right )^{-p}\right ) \text {Subst}\left (\int \frac {\left (1+\frac {b x^4}{a}\right )^p}{\left (-1+x^4\right )^2} \, dx,x,\sin (e+f x)\right )}{f}+\frac {\left (\left (a+b \sin ^4(e+f x)\right )^p \left (1+\frac {b \sin ^4(e+f x)}{a}\right )^{-p}\right ) \text {Subst}\left (\int \frac {x^4 \left (1+\frac {b x^4}{a}\right )^p}{\left (-1+x^4\right )^2} \, dx,x,\sin (e+f x)\right )}{f}+\frac {\left (2 \left (a+b \sin ^4(e+f x)\right )^p \left (1+\frac {b \sin ^4(e+f x)}{a}\right )^{-p}\right ) \text {Subst}\left (\int \frac {x^2 \left (1+\frac {b x^4}{a}\right )^p}{\left (-1+x^4\right )^2} \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac {F_1\left (\frac {1}{4};2,-p;\frac {5}{4};\sin ^4(e+f x),-\frac {b \sin ^4(e+f x)}{a}\right ) \sin (e+f x) \left (a+b \sin ^4(e+f x)\right )^p \left (1+\frac {b \sin ^4(e+f x)}{a}\right )^{-p}}{f}+\frac {2 F_1\left (\frac {3}{4};2,-p;\frac {7}{4};\sin ^4(e+f x),-\frac {b \sin ^4(e+f x)}{a}\right ) \sin ^3(e+f x) \left (a+b \sin ^4(e+f x)\right )^p \left (1+\frac {b \sin ^4(e+f x)}{a}\right )^{-p}}{3 f}+\frac {F_1\left (\frac {5}{4};2,-p;\frac {9}{4};\sin ^4(e+f x),-\frac {b \sin ^4(e+f x)}{a}\right ) \sin ^5(e+f x) \left (a+b \sin ^4(e+f x)\right )^p \left (1+\frac {b \sin ^4(e+f x)}{a}\right )^{-p}}{5 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F]
time = 13.74, size = 0, normalized size = 0.00 \begin {gather*} \int \sec ^3(e+f x) \left (a+b \sin ^4(e+f x)\right )^p \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.51, size = 0, normalized size = 0.00 \[\int \left (\sec ^{3}\left (f x +e \right )\right ) \left (a +b \left (\sin ^{4}\left (f x +e \right )\right )\right )^{p}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.51, size = 37, normalized size = 0.15 \begin {gather*} {\rm integral}\left ({\left (b \cos \left (f x + e\right )^{4} - 2 \, b \cos \left (f x + e\right )^{2} + a + b\right )}^{p} \sec \left (f x + e\right )^{3}, x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (b\,{\sin \left (e+f\,x\right )}^4+a\right )}^p}{{\cos \left (e+f\,x\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________